<template>
    <div style="background-color: chartreuse;">
        <a href="#" @click="activeC='MDao1'">超级可爱小德文</a><br>
        <a href="#" @click="activeC='MDao2'">炒鸡可爱逻辑猫</a><br>
        <a href="#" @click="activeC='MDao3'">超级可爱小美短</a><br>
        <component :is="activeT"></component>
    </div>
</template>

<script>
import MDao1 from './MDao1.vue';
import MDao2 from './MDao2.vue';
import MDao3 from './MDao3.vue';

export default{
    data(){
        return{
            activeC:''
        }
    },
    components:{
        MDao1,
        MDao2,
        MDao3
    }
}</script>